{template 'common/header'}

<form action="{php echo $this->createWebUrl('taskorder')}" method="post"> 
   <div class="panel panel-default"> 
    <div class="panel-body table-responsive"> 
     <table class="table table-hover"> 
      <thead class="navbar-inner"> 
       <tr> 
        <th>id</th> 
        <th>排序</th> 
        <th>任务图标</th> 
        <th>任务描述</th> 
        <th>状态</th>  
        <th>设置</th> 
       </tr> 
      </thead> 
      <tbody> 
      <tr>  
		{loop $list $index $value}
        <td>{$value['taskname']}</td> 
        <input type="hidden" name="taskid[]" value="{$value['id']}"/>
        <td> <input type="text" class="form-control" name="taskorder[]" style="width:100px;height:35px;" value="{$value['taskorder']}"> </td> 
		<td><img src="{$_W['attachurl']}{$value['taskheadimg']}" style="width:30px;height:30px;"></td>
        <td>{$value['taskmessage']}</td> 
        <td> {if $value['status']==1}<span class="label label-success">上线</span>{else}<span class="label label-default">下线</span>{/if}</td> 
        <td><a href="{php echo $this->createWebUrl('tasksetting',array('id'=>$value[id]))}" class="btn btn-default btn-sm" title="修改"><i class="glyphicon glyphicon-cog"></i></a> <a href="{php echo $this->createWebUrl('taskdelete',array('id'=>$value[id]))}" class="btn btn-default btn-sm" onclick="return confirm('确认删除此广告?')" title="删除"><i class="glyphicon glyphicon-remove"></i></a> </td> 
        
       </tr>  
       {/loop}     
       <tr><td colspan="6" style="text-align:left;"> <a class="btn btn-default" href="{php echo $this->createWebUrl('taskadd')}"><i class="glyphicon glyphicon-plus"></i> 添加任务</a> <input type="hidden" name="token" value="bd06da03"><input name="submit" type="submit" class="btn btn-primary" value="提交批量排序"></td></tr> 
      </tbody> 
     </table> 
    </div> 
   </div> 
  </form>
  
{template 'common/footer'}